package lab02.Test02;

/**
 * Created by lenovo on 2017/10/15.
 */
public class Circle {
    //属性:半径
    double radius;
    //行为:返回圆的面积和周长
    double area(){
        return 3.14 * radius * radius;
    }
    double perimeter(){
        return 2*3.14*radius;
    }

    //构造函数
    //main函数
    public static void main(String[] args) {

    }
}
